package site.wanjiahao;

import java.util.Comparator;

public class MyComparator implements Comparator<Person> {

    @Override
    public int compare(Person e1, Person e2) {
        return e1.age - e2.age;
    }
}
